#pragma once
#include "../device_base.h"

class device_virtual_dev : public device_base
{
public:
	device_virtual_dev(void);
	device_virtual_dev(char * devPath);

	virtual ~device_virtual_dev(void);

public:
	virtual int open();

	virtual int close();

	virtual int send_data(unsigned char * request, int request_len);

	virtual int receive_data(unsigned char * response, int *response_len);

	virtual int device_io(unsigned char * request, int request_len,unsigned char * response, int *response_len);

	virtual int set_comm_timeout(int time_out);

	virtual char * get_dev_path();

	virtual char * get_dev_name();


private:

	unsigned char reps[2048];
	int  reps_len;
	char		_dev_path[256];

};
